<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>登录页面</title>
  <!-- 引入 Bootstrap在线cdn -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>

<div class="row clearfix" style="text-align: center">
  <div class="page-header">
    <h1>
      <small>登录页面</small>
    </h1>
  </div>
</div>

<div align="center">
  <form action="/user/loginUser" method="post" style="width: 30%">
    <!--如果msg的值为空 不显示提示的信息-->
<!--    <span th:text="${msg}" th:if="${not #strings.isEmpty(msg)}" style="color: red"></span>-->
<!--    <span th:text="${status}" style="color: pink"></span>-->
    <div class="form-group">
      <label for="username">用户名</label><br>
      <input type="text" class="form-control" id="username" maxlength="10" name="username" placeholder="请输入您的账户"
             required style="width: 60%"/><br>
    </div>

    <div class="form-group">
      <label for="password">密码</label><br>
      <input type="password" class="form-control" maxlength="16" id="password" name="password"
             placeholder="请输入您的密码" required style="width: 60%"/><br>
    </div>

    <div class="form-group">
      <label for="vcode">验证码</label><br>
      <input type="text" class="form-control" id="vcode" name="vcode" maxlength="10" placeholder="请输入验证码"
             required style="width: 60%"/><br>
    </div>

    <!--判断是否激活用的-->
    <!--<input type="hidden" name="status" value="1">-->

    <input type="submit" class="btn btn-primary" value="登录账号"/>
  </form>
</div>

<div class="row clearfix" style="text-align: center">
  <br>
  <a href="/user/indexPage" class="btn btn-warning">去注册页面</a>
</div>

</body>
</html>